Palindrome is a string that is identical to its reverse, like "level" or "aba". Given a string, check it is palindrome or not.
You are to check all possibile substring (the length of substring is greater than or equal to 2).
NOTE: In the partial code, the function has three parameters: the pointer of the input string, the start position, and the end position.
The range of each substring is from start position to end position (contain the element in the end position).
The input only contains one string. The length of the string is less than 1000.
If the substring is palindrome, print "Yes\n".
If the substring is not palindrome, print "No\n".