Program not passing all the testcase

Program not passing all the test cases., but working perfectly on my pc compiler with n number of different inputs.

Pls share your code by saving on ide so that I could check it…