Is palindrome ? in this code

please check me my mistake in this ques one test case is wrong

Aarti, pls share your code by saving on ide so that I could check it…