G-9. Flood Fill Algorithm | C++ | Java