Pocket Gems Interview Question

Brain teaser