Adenza Interview Question

OOPS Concepts, reverse a string etc