Pocket Gems Interview Question

Coding question