Code for problem 106.