Write a function that takes a string as input and returns the string reversed.
Example:
Given s = "hello", return "olleh".
/**
* @param {string} s
* @return {string}
*/
var reverseString = function(s) {
var a =[];
for (i of s){
a.push(i);
}
return a.reverse().join("");
};