Added the solutions for question 1 and 2 in latex