Solutions for r/dailyprogrammer problems