Expected Output same as my output, still wrong answer


In test cases:
for string A = “j”,
expected output = “j”,
my output = “j”,
still wrong answer??


Take care of spaces.

Let’s say space is denoted by _
then your output might be _j or j_whereas required output is just j


am also getting the same issue and there are no leading and trailing spaces with j in my output, still giving error.


once try to return result by removing leading and trailing spaces before return statement.


Same here… compared both expected output and my output in a comparing app, they’re identical.