Pergunta de entrevista da empresa In Time Tec

Find the highest and lowest element in an array.