Google Code Jam Solutions