Google Code Jam practice