Example 1
maxValueAndIndex()Input
nums = [-49, 44, -22, -45, 88, 1, 67, 66, -24, -6, 6, -3, -47, 1, -18, 15, 45, 8, -26, 61, 80, -10, -27, 58, 33, 57, 36, 42, -36, 89, 49, -5, -2, -47, 14, -3, 43, -32, 88, 4, -19, 0, -2, 4, -7, -9, 31, -17]Output
[89, 29]Why
`maxValueAndIndex` returns `[89, 29]` for this input.