Example 1
minAndMax()Input
nums = [0, -182, 87, 221, 136, -157, -144, -152, 166, -120, 258, 221, -19, 205, 292, -77, 14, -123, 280, 269, -194, 190, 49, 0, 276, 192, -194, 190, 246, 295, 55, 60, -8, 231, -83, 58]Output
[-194, 295]Why
`minAndMax` returns `[-194, 295]` for this input.