solve problem set 2
solve programming question 2