Solutions to Google's Code Jam problems