solution for problem 75
solution for problem 76