CGI Interview Question

Get the second max element from array.