Made working code for part F. Inefficient but no other way to do it.
Need to figure out how to return an error for no way to make change.
Changed a few comments.