Qualcomm interview question

logical puzzles