Publicis Sapient Interview Question

some simple algorithmic questions , reverse a string types