Example 1
minAndMax()Input
nums = [18, 291, 46, 233, -193, 167, 231, 56, -100, 2, 186, 145, 129, 80, -91, 224, 70, 207, -3, -81, 204, 37, 143, 177, -94, -189, 107, 282, -94, 139, 166, 180, 137, 178, 237, 178, -132, 51, -108, 259, 89, -2, -63, 158, 36, -4, -128, 178]Output
[-193, 291]Why
`minAndMax` returns `[-193, 291]` for this input.