Pergunta de entrevista da empresa e.solutions

Asked to reverse a string, can use swap.