Pocket Gems Interview Question

Q: online challenge.