Oracle interview question

Q: Implement the "Word wrap" function?