Bloomberg Interview Question

Return the index of next largest element in the given array