EPAM Systems interview question

Find min and max in an integer array using single for loop.