Domanda di colloquio di Veritas Technologies

Find first max and second max in an array , how can graphs be represented ?