Digit Distribution

Function for part 1 now returns the digit distribution.