PwC interview question

Searching largest and second largest elements in an array