Task: Solve P2.17 in your text please. 

Here's where you can find the text of the problem: 

  https://www.cs.indiana.edu/classes/c212-dgerman/spr2013/classNotes/two/image023.jpg

--