Nagarro interview question

1) Find 2nd maximum element from Array.