This function returns the integer representing the minimum number of operations needed to make the string a palindrome.