Uber interview question

Flood Fill Algorithm.