Guidewire interview question

In what ways you can create a function?