solutions to the r/dailyprogrammer puzzles