Pergunta de entrevista da empresa NVIDIA

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