/* check given string is palindrome or not. */
A string is a palindrome if the string is equal to its reversed, for example, "madam" is a palindrome as reverse of "madam" is "madam" whereas "program" is not a palindrome as its reverse is “margorp”. Some other examples of palindrome strings are "nitin", "mayalayam", "abcba".
Instead of reversing the string and checking the result we will just check whether first letter is equal to last letter or not, second letter is equal to second last letter or not, and so on. If all n/2 check give result true then the string is palindrome else it is not.
Skills Learned :
In-built function strlen().
Written with ♥ from Mangesh.