Kunal Interview Question

find second max digit from array