Pergunta de entrevista da empresa Check Point Software Technologies

find the second maximum on an array.