Qualcomm interview question

Puzzle questions : 3 or 4, Basic Psuedo codes for simple problems