Is palindrome problem

https://ide.codingblocks.com/s/50243

sir my last test is failing. wht is the error with this code ?

Hi Yukti, add a break statement in the else block once the value of flag becomes false otherwise the for loop will continue running till i<=j and the value of flag will get modified again.