Code test challenge.

Here is my submission for the code challenge.