Wrong Answer

I got wrong answer in the question Game-with-letters.
I saw the editorial, and I did exactly the same thing.
My submission ishere.
Please let me know what am i doing wrong?