Oracle interview question

Write code for the paint bucket tool.