Accenture interview question

Problems on reverse a String