solutions for the challenges in reddit.com/r/dailyprogrammer