Shil and Palindrome Research

Problem: https://hack.codingblocks.com/contests/c/547/966
Code: https://ide.codingblocks.com/s/45039

4 out of 5 test cases are passing…
Can anyone help me with this problem…

@Anubhav-Aron-1353657628083250