Sasken Interview Question

C language Logic.