Example 1
minAndMax()Input
nums = [145, 220, -115, -190, 22, 97, 178, -40, 35, -41, 158, 201, -1, 140, 151, 91, 1, 288, -44, -84, -14, 240, 130, -40, -157, 271, 297, 60, 78, 191, -126, -179, 174, 208, -97, -162, 176, -30, -113, -24, -166, 90, 44]Output
[-190, 297]Why
`minAndMax` returns `[-190, 297]` for this input.