We can obtain two palindromes from s, "abba" and "baab".
- We can obtain "abba" from s in 2 moves: "a<u><strong>ab</strong></u>b" ->"ab<u><strong>ab</strong></u>" ->"abba".
- We can obtain "baab" from s in 2 moves: "a<u><strong>ab</strong></u>b" ->"<u><strong>ab</strong></u>ab" ->"baab".
Thus, the minimum number of moves needed to make s a palindrome is 2.
One of the palindromes we can obtain from s in 2 moves is "lettel".
One of the ways we can obtain it is "lete<u><strong>lt</strong></u>" ->"let<u><strong>et</strong></u>l" ->"lettel".
Other palindromes such as "tleelt" can also be obtained in 2 moves.
It can be shown that it is not possible to obtain a palindrome in less than 2 moves.
</pre>
<p> </p>
<p><strong>Constraints:</strong></p>
<ul>
<li><code>1 <= s.length <= 2000</code></li>
<li><code>s</code> consists only of lowercase English letters.</li>
<li><code>s</code> can be converted to a palindrome using a finite number of moves.</li>