Question d’entretien chez Braze

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