solution for problem 88