This question was asked in Ex 7.3, 10

Rolle's theorem

Yubraj Chetry's image