Pergunta de entrevista da empresa Google

How do you get the largest int in the array? How would you go about finding the second largest int in the array? How would you improve upon your solution?