Solved problem 27 BOOM