This question was asked in Ex 5.1 ,7
Q7 is not it short proof of exercise 5.1 continuity clsass 12 
Sunny Tuli's image