That is what I did for this challenge:
https://www.reddit.com/r/dailyprogrammer/comments/52enht/201...
https://github.com/Rhebel/DailyProgrammer/blob/master/DailyP...
I know my code is super verbose compared to other people's but I'd rather be understood than clever.