Problems descriptions: https://codingcompetitions.withgoogle.com/codejam/round/000000000043580a