This question was asked in Ex 1.2, 1
Is this solution  can be written in exams
Sohaib Sayed's image