Solutions to Google Code Jam problems