Pergunta de entrevista da empresa Geekyants Software

find the maximum and minimum element in an array ?