Pocket Gems Interview Question

A take-home assignment.