Example 1
minAndMax()Input
nums = [229, -101, -97, 139, 299, -86, -127, 62, 27, -55, 162, -93, 115, 281, -76, 154, -195, 161, 119, 67, 168, -1, 206, 287, 230, 250, 12, 138, -191, 43, 159, 67, -61, 83, -130, 253, 264, -146, 170, -73, 232, 80, -148, 21]Output
[-195, 299]Why
`minAndMax` returns `[-195, 299]` for this input.