Domanda di colloquio di Amazon

Find largest and second largest number of an array?