In Time Tec Interview Question

Find the highest and lowest element in an array.