Solution for problem 88. Not fast, but works.