Adenza interview question

OOPS Concepts, reverse a string etc