This question was asked in Ex 5.6, 11

20191215_164406.jpg short method for question no. 11 from exercise 5.6

HARIHARAN BABU's image