Regarding Assingments in Piyush And Magical Park

https://ide.codingblocks.com/s/69205.In this assignments One test case passes but rest it shows wrong answer .
Please help to solve this question

i have marked ur mistakes and modified it
check this https://ide.codingblocks.com/s/69234

Hey Raushan,
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.