Pregunta de entrevista de Qualcomm

Shared a screen and asked me to code