Why the condition of while is showing error?

hello @supratik260699
s1 is an string and ā€˜\n’ is a charater .

thats why it is giving error.

ur while loop should look like.
s1[i] != '\0’

one test caseis not correct can u please check I am not able to find any mistake

@supratik260699
print output for each test case in separate line