Problem 2810 · Easy

Faulty Keyboard

Append each letter and reverse the string on each i, tracking the reversal as a flag.

Open the interactive visualisation