Kunal interview question

find second max digit from array