problem 8 - rezolved