Pergunta de entrevista da empresa Check Point Software Technologies

given 2d matrix, find the second maximum of it.