Domanda di colloquio di Chatham Financial

Reverse a string

Risposta di colloquio

Anonimo

5 set 2017

I initially did it using Python's [::-1], but the developers wanted me to do it in Java, as they were not familiar with Python. I then converted the string to a character array and swapped the characters around.