Correct answer but test cases not passed

I am getting correct answer in custom input and logic is correct but all test cases are incorrect