Example 1
maxValueAndIndex()Input
nums = [-20, 1, 18, 24, 53, 52, 20, 7, 2, -27, -5, 52, -5, 54, -50, 56, -36, 58, 35, -11, -39, 8, 4, 87, 45, -6, -27, 57, 26, 34, 16, 35, -41, -41, -17, 79, 28, -21, 45, -46, 25, 45, 42, 51, -20, 24, -2, 45]Output
[87, 23]Why
`maxValueAndIndex` returns `[87, 23]` for this input.