Domanda di colloquio di Siemens

The question was reversing a string.