Pergunta de entrevista da empresa Webdunia

Write a program to reverse a string and print every third character.