CS246 HW3 Q2