Pregunta de entrevista de Braze

HackerRank problem about solving a 2d board, replacing repeated numbers with 0.