Dassault Systèmes interview question

How will you reverse a string?