Agilysys interview question

Program for finding minimum and maximum