Qualcomm Interview Question

irrelevant for my focus in this case