Google Interview Question

Flood fill leetcode problem. It wasn't too hard.