Hacker rank problem


https://ide.codingblocks.com/s/154010-it was the function editor code
and the code is giving all test cases are failed except one