Vodafone interview question

Explain the reverse string algorithm