Pregunta de entrevista de EPAM Systems

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