Solution to the guess the number challenge.