Pergunta de entrevista da empresa Google

Write a function that takes a string as input and returns the same string reversed. For example, if the input is “hello,” the output should be “olleh.”