Apple Interview Question

Second Maximum of an array