Create a function that takes an array and returns the largest and smallest elements.
EasyProblem Statement
Create a function that takes an array and returns the largest and smallest elements.
Sample Input
[3, 7, 1, 9, 4]
Sample Output
{ min: 1, max: 9 }
Limits
Time: 2s · Memory: 256 MB