HURITS interview question

Write a program to gind the second maximum element in an unsorted arrray?