Pergunta de entrevista da empresa Veritas Technologies

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