Adecco interview question

Function to reverse string in javascript