KREVERSE PROBLEM IN HACKERBLOCKS https://ide.codingblocks.com/s/77773

Test Case was not passing. I have tried with every possible input and I am getting correct output. So Kindly check the test cases, as the question seems to be pretty simple with no successful submission.