Accenture Interview Question

Loop over an object How to reverse a string