This question was asked in Ex 14.3, 5
I ques 4 of 14.3 you are showing a differnt method but in this ques histogram is made differntly

Tarun Deep's image