Pergunta de entrevista da empresa Abzooba

Reverse a string, atleast 2 approaches. Which one with better time complexity