Problems from Google Code Jam Practice Contest