Expected Output same as my output, still wrong answer


#1

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


#2

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


#3

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


#4

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


#5

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