Example 1
minAndMax()Input
nums = [55, -49, 263, -148, 228, 257, 175, -115, 271, 70, -5, 181, -25, 39, 50, 177, -134, 12, 77, 169, 119, 238, -162, -97, -3, -196, -68, -137, 249, -141, -36, -94]Output
[-196, 271]Why
`minAndMax` returns `[-196, 271]` for this input.