Why is this not giving correct output?


It is giving correct output
But it is showing all the test cases are wrong, Why so?