Histogram problem


if i dry run the code,it is working fine then why is it showing error?

I have edited your code… Try to submit it now…