Cyntexa interview question

Take an array as user input and find the maximum and minimum elements. Example: Input: [4, 8, 1, 9, 3] Output: Max = 9 Min = 1