Pergunta de entrevista da empresa Zopper

Write code to get the 2nd largest Number of an array in O(n) time and O(1) space.