lgecodejame 2014 august problem 1 completed