Solve problem 10, Allen