Example 1
maxValueAndIndex()Input
nums = [9, -31, 86, 76, -48, 18, 24, 87, -29, 13, -13, 75, 63, 55, 75, 65, 39, 75, -31, -46, 81, -20, -34, -18, -9, -35, 53, -44, -25, 81, -41, -39, 75, 10, -40, 12, -50, 1, 41, 67, 63, 60, 71, 10, 13, 71, 32]Output
[87, 7]Why
`maxValueAndIndex` returns `[87, 7]` for this input.