UPS interview question

Basic Java question, and programming question was switching two strings