Problem 2810 · Easy
Append each letter and reverse the string on each i, tracking the reversal as a flag.
Open the interactive visualisation