Example 1
minAndMax()Input
nums = [125, 60, -52, 283, 44, 280, -14, -173, 123, 196, 223, 14, 9, 177, 270, -44, -199, -70, 30, -98, 62, 168, 38, 176, -180, 48, 89, 180, 254]Output
[-199, 283]Why
`minAndMax` returns `[-199, 283]` for this input.Problem 170 of 1146 in the arena