Piyush and majical park

plz look at my code
do not passes all test cases