Pocket Gems interview question

Two questions asked