Qualcomm Interview Question

few questions on algorithms