Pocket Gems interview question

O(1) mutable string