Pergunta de entrevista da empresa Amazon

Find largest and second largest number of an array?