Example 1
maxValueAndIndex()Input
nums = [12, 0, -24, 50, 89, -41, 70, -18, 83, 8, 79, -26, 25, -36, 87, -38, -23, 16, 79, 79, -49, 41, 56, 88, -47, 83, -10, 40, 49, -31, 21, 9, 41]Output
[89, 4]Why
`maxValueAndIndex` returns `[89, 4]` for this input.