Is palindrome or not


in the question take size of string is given then how to take the size of istring

@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()