FareHarbor Interview Question

Given a 2d array of pixels implement flood fill