Add answer of Problem 1 and Problem 2