Piyush and magic park

1 test case is wrong
Link…https://ide.codingblocks.com/s/160943

I have edited your code , try to submit now, I have only included the condition that if (s<k ), then break…

Thanks…The test case has been solved