Incedo Interview Question

code for reversing a string