Qualcomm interview question

they asked some brain puzzles.