Dassault Systèmes Interview Question

How will you reverse a string?