added slow solution for prob 169