Only ladders hackerblocks


https://hack.codingblocks.com/practice/p/390/385
one testcase is failing and i am not able to find the error.