Qualcomm interview question

Questions were from data structures and algorithms.