Pergunta de entrevista da empresa Bank of America

Coding questions were to implement a function to reverse a string and identify what is wrong with a piece of code they show you.