PwC Interview Question

Searching largest and second largest elements in an array