Connected interview question

Flood fill algorithm.