Example 1
maxValueAndIndex()Input
nums = [83, -38, -15, 4, -32, 68, 25, 69, 16, 17, 75, 66, 49, -32, 26, -21, -21, -45, -35, -24, -37, 65, 13, -34, 76, -39, -31, -13, 44, 6, 10, -11, -12, 68, 6, 71, 68, -49, -22, -10]Output
[83, 0]Why
`maxValueAndIndex` returns `[83, 0]` for this input.