Question d’entretien chez Meta

Write a method to implement the flood fill algorithm.