Pergunta de entrevista da empresa LINE

Can you write a function to reverse a string in Python/Java/C++