Pergunta de entrevista da empresa General Mills

They asked me to reverse a python string they provided, and just explain the output.