Example 1
maxValueAndIndex()Input
nums = [30, 24, 74, 17, 62, -28, 36, 13, 2, 18, -15, 13, 73, 15, -43, -37, -25, 31, -34, -7, 32, -6, -15, -39, 73, 16, 21, -24, -31, 79, 43, -47, 0, 52, 86, 86, 82, -42]Output
[86, 34]Why
`maxValueAndIndex` returns `[86, 34]` for this input.