What if there is upper and lower case both in string so it will not work na? so ans shoul d be a na?

@guptashubham210a what does lowercase and uppercase has to do with these algorithm. if after reversing s and rev are same then it is palindrome else not.

GOT it! THanks alot.

1 Like

mark this doubt as resolved if you don’t have any further queries.