You are given a string s consisting of lowercase English letters.
You can perform the following operations any number of times (including zero) and in any order:
i and replace s[i] with the next lowercase English letter. The letter after 'z' is 'a'.Return the minimum number of operations required to make s a .
Example 1:
Input: s = "abc"
Output: 2
Explanation:
One optimal solution:"abc" -> "bca".'a' to 'b': "bca" -> "bcb"."bcb" is a palindrome. Thus, the answer is 2.Example 2:
Input: s = "yb"
Output: 3
Explanation:
"yb" -> "zb" -> "ab" -> "bb"."bb" is a palindrome. Thus, the answer is 3.
Constraints:
2 <= s.length <= 2000s consists only of lowercase English letters.