Solution to the Nulogy code challenge.