solutions to http://www.problemotd.com/ problems