Piyush and the magicalpark

MY CODE IS UNABLE TO CLEAR TEST CASE 0 AND 3

I have edited your code… Try to submit it now…