Code that solves Google Code Jam problems