Interview question I got about applying a series of transformations to the keyboard