Refer to the COE312-Fall2019-Final.doc for the question and src for my solution. This is my solution that came up during the exam. Other solutions may exist and my solution might not be perfect. It's been put up to simply serve as a practise problem.