Apple Interview Question

Reverse a string, how to create an inverter