Sir ,one test case is coming wrong

Your code is failing the test case where input is 1.