Pocket Gems interview question

Typical algorithm questions