Help me in solving LBCS106 problem

My issue

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