Qualcomm interview question

Puzzle questions