Pergunta de entrevista da empresa Fanatics

Find the second largest integer of an array, optimized version.