Google interview question

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?