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