Rakuten Interview Question

find the second max in an array