add solution for week5 question2

add solution for week5 question2