Pergunta de entrevista da empresa Qualcomm

Going through code snippets and finding issues/ changing code