Qualcomm interview question

Some finding error questions were tricky