Help me in solving CLB046 problem

My issue

what the answer of this question with explanation

Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone