Code for problem 122.
Code for problem 123.
Code for problem 45.