Idk wat is wrong with the logic

please look into the logic

Hey @harika22k2020,
Please save the code on IDE and share the link here.