Domanda di colloquio di Infosys

Find the first and second maximum of an array in one loop