lgecodejam 2014 august problem 2 completed