Question 3 - completed but not optimal. Takes a long time to produce answer