in the question take size of string is given then how to take the size of istring
Is palindrome or not
@Chandra123 you can use length() function to get the length of the string.
Suppose the name of the string is str, so the length of the string will be str.length()