Pergunta de entrevista da empresa Shrine Software

find the second largest element in the array?