Introduction - If you have any usage issues, please Google them yourself
The algorithm can be compared in the step-by-step method in array to find maximum and minimum values at the same time, until you find the maximum and minimum values so far, and then output