Pocket Gems Interview Question

Coding challenge