HW1 Problem 3