Codejam solutions