Qualcomm interview question

I've already explained it here oney