Sponsored
Use these hints if you're stuck. Try solving on your own first.
Is it possible to swap one character in the first half of the palindrome to make the next one?
Are there different cases for when the length is odd and even?
Solve with full IDE support and test cases