문제
A palindrome string is a word which reads the same backward as forward, such as madam or racecar. In this problem we only consider strings with lowercase alphabets.
We newly define the types of palindromes. If a string is not a palindrome, we try to make it a palindrome by removing the minimum number of characters in the string. For a string , if is the minimum number of characters removed to make the string a palindrome, we call the string type- palindrome. Thus, if is a palindrome, then is a type- palindrome.
Given a string , write a program to determine if is a type- palindrome where .