Qualcomm Interview Question

Please rate your coding ability