RTE on test #7.
Code for problem 101C.