problem 107 AC