Pregunta de entrevista de Geekyants Software

find the maximum and minimum element in an array ?