hw2 solution

hw2 solution