Example 1
minAndMax()Input
nums = [224, -75, 1, -32, 273, 193, -38, -142, -175, 42, 97, -73, 40, -28, 144, 249, 275, 19, 147, 104, -43, 1, -18, 27, -14, 199, -199, 271, -164, -28, 251, 294, -44, -154, 130, -45, 101, 100, -163, 286, -73, 150, -23, -157, 214, -130, 266, -10]Output
[-199, 294]Why
`minAndMax` returns `[-199, 294]` for this input.