A recursive function to replace previous value ' prevV ' at ' ( x , ▁ y ) ' and all surrounding values of ( x , y ) with new value ' newV ' .
def floodFillUtil ( mat , x , y , prevV , newV ) : NEW_LINE