Is palindrome question

which test case i am failing?

@Arshabh
Your code had an error
else
{
success=false;
break;
}

Try this