Help me in solving DSA34 problem

My issue

i need solution for correction

My code

# Write your code below this line

Learning course: Kalasalingam Academy of Research and Education
Problem Link: CodeChef: Practical coding for everyone