Qualcomm Interview Question

The questions weren't hard, very basic.