Problem

Return index of max (first if tie).

Examples

  • indexOfMax([2, 9, 9]) -> 1
Compile and test (Ctrl+Enter)