Pergunta de entrevista da empresa Qualcomm

Showed me some code and asked where the problems were