Sasken interview question

C language Logic.