Example 1
minAndMax()Input
nums = [-157, -29, -131, 273, 174, 239, 96, -103, -78, 88, 117, 4, 82, 176, 230, -6, -127, 124, -16, 199, 102, 101, 213, 92, 17, -122, -189, -80, -46, 10, -18, 242, -51, 230, 221, -176, 284, 215, -79, -129, 249, -100, -8, 63, -138, 16, -168, -158]Output
[-189, 284]Why
`minAndMax` returns `[-189, 284]` for this input.