Finish problem 11 in somewhat inelegant serial C.