solution for problem 102
solution for problem 70