Domanda di colloquio di UPS

Basic Java question, and programming question was switching two strings