My solutions to the Reddit/r/dailyprogrammer challenge #179 [Easy]