apple phone interview

design an API to reverse a String
What’s your input/output? Will you do that in place? or return the result to who use your API?
What are other considerations?