Given a string A consisting only of lowercase characters, we need to check whether it is possible to make this string a palindrome after removing exactly one character from this.
If it is possible then return 1 else return 0.
3 <= |A| <= 105
A[i] is always a lowercase character.
First and only argument is an string A.
Return 1 if it is possible to convert A to palindrome by removing exactly one character else return 0.
A = "abcba"
A = "abecbea"
We can remove character ‘c’ to make string palindrome
It is not possible to make this string palindrome just by removing one character
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a question? Checkout Sample Codes for more details.