Vodafone Interview Question

Explain the reverse string algorithm