Xebia interview question

Find second maximum in array