FareHarbor interview question

Given a 2d array of pixels implement flood fill