Code giving correct output when testing with custom input but on submit, says wrongly incorrect


When submitting my code, it gives me that my code produced some other output, whereas expected was different. But on testing the same input with custom input, I find that my code produces the expected output only. This is probably the bug of the portal. Kindly let me know.