Help me in solving SYNJMCQ23 problem

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

My issue

What are you not able to understand in this problem?