Qualcomm interview question

datastructures and algorithms