Pregunta de entrevista de Qualcomm

Going through code snippets and finding issues/ changing code