Frage im Vorstellungsgespräch bei Publicis Sapient

some simple algorithmic questions , reverse a string types