Occurrences of highest value in series

Sign in to test your solution.