i key on a keyboard is broken: instead of typing a letter, it reverses all the text typed so far. Every other key works normally.
You press the keys listed in the string keys, one after another. Return the text that ends up on the screen.keys='coding' → 'docng'
After "cod" the i is pressed and the text turns into "doc"; then n and g are added, giving "docng".
keys='kiwi' → 'wk'
k gives "k"; i gives "k"; w gives "kw"; i gives "wk".
keys='plaza' → 'plaza'
There is no i, so the text is typed as is.
keys consists of lowercase English letterskeys[0] ≠ 'i'keys='coding'
'docng'
Run checks the first 3 tests in your browser. Submit checks all 144 tests on the server, hidden ones included.