Frage im Vorstellungsgespräch bei Tata Consultancy Services

Explain hoisting in js Reverse a string