Not passing any testcase

Hi team ,

My logic for the problem seems correct and tested it using my custom test cases and my custom input , but why it’s not passing any of the test cases.