Google CodeJam solutions