Core problem Part E

..