Solutions to Reddit's dailyprogrammer challenges