Capgemini interview question

Write a function in Javascript to reverse a string.