Intuit interview question

Write a Java method that manipulates a string a certain way.