Add solution to Gem Stones challenge.