Qualcomm Interview Question

Code and debug some code on whiteboard