Vonage interview question

Code a simple function in Java in a Google Docs document.