week 3: solving 'histogram' in terms of 'digitFreqs' and 'rows'