Challenge from http://www.reddit.com/r/dailyprogrammer/comments/2er1v0/8272014_challenge_177_intermediate/ but without saving to file.