Help me in solving LBCP01A problem

My issue

My code

// Step 1: Read and understand the problem statement and sample test cases

// Click on 'Next' once you are ready to proceed.

Learning course: C for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone

@rahulgangwar22 - request you to give more details about your issue.