Google Interview Question

code for implementing a text-wrapping function in Google Docs