How to fix the problem?

This is my code

i can’t get the approach how to fix the problem , I know the problem .

Hey @chetan_aggarwalbX1
Updated ur code : https://ide.codingblocks.com/s/348188 :slight_smile: