All 3 test cases giving wrong answer but sample test case passing