NovoInvent interview question

Second max element in array