week3 ques 6 solution