Ad
  • Custom User Avatar

    I learnt from other solutions that there's no need for the occurrences variable here. Also, the best scored example for this kata used a nice feature of the index method which is to pass a second parameter representing the start index for finding the number.