Problem 2 of Code Fellows Coding Challenge