Qualcomm Interview Question

Nothing insanely hard