Recur for north , east , south and west
floodFillUtil ( screen , x + 1 , y , prevC , newC ) NEW_LINE floodFillUtil ( screen , x - 1 , y , prevC , newC ) NEW_LINE floodFillUtil ( screen , x , y + 1 , prevC , newC ) NEW_LINE floodFillUtil ( screen , x , y - 1 , prevC , newC ) NEW_LINE