Histogram

Log(n) histogram problem.