Code for problem 119.
Code for problem 97.