Question 850743
<pre>
I had a couple of typos on the first solution I submitted.
Below I have corrected them.

Edwin</pre>