Pocket Gems interview question

Q: online challenge.