Is Palindrome? -Two test cases failed

What is wrong with my code?

u r not taking n input
cin>>n bhi karna h

thank you for pointing it out