Qualcomm Interview Question

Debugging a programming challenge and background questions