Pocket Gems Interview Question

Algorithm