Histogram step by step

step by step code