google codejam problem