2162E: Beautiful Palindromes | Nudge