Meta Interview Question

Write a method to implement the flood fill algorithm.