First test case not passing can you please tell why the code is failing?

code -> https://ide.codingblocks.com/s/300774