Question 3a

Pseudo Code