Oracle Interview Question

Q: Implement the "Word wrap" function?