Example 1
minAndMax()Input
nums = [90, 4, 76, 277, -51, -128, 54, -3, 28, 21, 31, 30, 60, 235, -164, -135, -169, 45, 118, -58, 232, 6, 196, -97, 199, -33, 287, -31, 122, -51, 216, 26, 56, 191, -18, 118, 42, 118, 87, -90, -50, 261, 66, 194, -28, 114]Output
[-169, 287]Why
`minAndMax` returns `[-169, 287]` for this input.