answer-1

solution to question 1