Refer to assignment for description of problem.
Solution: Here is one solution.
Solution: Here is one solution: