Question d’entretien chez NVIDIA

Write a function to find the largest and second largest element in an array ( without using sorting)