Response to a challenge on /r/dailyprogrammer including unit tests. Fun stuff.