Domanda di colloquio di Braze

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