add solution function for question 17