Visa Inc. Interview Question

Reverse string