MAXWORDLEN was printed twice in histogram. Fixed the logic to handle i=MAXWORDLEN condition properly in both the histograms functions
Revert "MAXWORDLEN was printed twice in histogram. Fixed the logic to handle i=MAXWORDLEN condition properly in both the histograms functions"

This reverts commit cd8694262dcfb8590e4124f81ebbf91e0b120a1f.

reverting cd8694262dcfb8590e4124f81ebbf91e0b120a1f temporarily
Fixed histogram logic to handle all the values correctly and print correct output