This question was asked in Ex 1.2 , 10
Function 
Prashant Dhiman's image