Pearl No.2 - The Max Number of Surpassers

In a list of unsorted numbers (not necessarily distinct), such as The surpassers of an element are all elements whose indices…