indexOfMax

Returns the index associated with the maximum element in the array For ties, this returns the first found.

Return

the index associated with the minimum element