Pergunta de entrevista da empresa FarEye

Find 2nd largest element in an array (in one traversal)