problem 41 (not efficient)