Implement a function to encode a given string by reversing its characters and appending the original string.
Analyze constraints and compute optimal solutions step-by-step.
No dry run loaded.
🚀 Practice this problem
Run code, get AI hints & track streak