Pergunta de entrevista da empresa EchoStar

Write an algorithm that would reverse the characters of a char array.