Stellar Science Interview Question

Implement a flood-fill algorithm.