Help me in solving LB18 problem

Problem Link: CodeChef: Practical coding for everyone
Learning course: Solve Programming problems using Python

My issue

Can i help you?