how to check string is palindrome or not in c