You have an outer class ArrayCalc and a static nested class MinMaxPair inside.
Complete the method MinMaxPair that finds the min and max elements of an array.
Motivation: our goal is to find the minimum and the maximum element of an array. Of course, it can be done by two different methods, but a special structure MinMaxPair will allow going through an array only once, which is more effective.