Connected Interview Question

Flood fill algorithm.