Example 1
maxValueAndIndex()Input
nums = [-20, 50, 39, -5, -47, 63, 70, 59, 3, 22, -10, 57, 64, 16, 64, -20, 73, -14, 64, 48, 22, 82, -41, 89, -26, -17, -37, 34, 20, 66, 63, 47, 9, -37, -31, 4, 89, 66, 18, 42, 67, -49, 72, -41, 70, -42]Output
[89, 23]Why
`maxValueAndIndex` returns `[89, 23]` for this input.