tringapps interview question

find maximum and minimum in an array .