Adding answers for problem 2 to HW1 docx