Volansys interview question

Write a c program for palindrome. "abcba -yes" "abda - no"