Adecco Interview Question

Function to reverse string in javascript