Code for reddit's /r/dailyprogrammer