Solutions for Reddit's DailyProgrammer challanges