Connected interview question

TDD and flood fill algorithm