Example 1
maxValueAndIndex()Input
nums = [-42, -48, 68, 33, -31, -7, 72, 24, 3, 68, 25, 89, -1, 25, 80, 69, 55, -18, 26, -44, -7, -47, -49, 18, -15, -11, 0, -28, -42, 15, -29, -14, 61, -14, 56, 2, 62, -47, 62, 36, 59, 35, 10, -46, 36, -13]Output
[89, 11]Why
`maxValueAndIndex` returns `[89, 11]` for this input.