Pergunta de entrevista da empresa EF Education First

How to reverse an arbitrary string in a method?