Pergunta de entrevista da empresa Techvision (Brazil)

Sum of max and second max number in an array