Write a function that takes a string as input and returns the string reversed.
Example:
Given s = “hello”, return “olleh”.
string reverseString(string s) {
int j = s.size() - 1;
int i = 0;
while(i < j){
swap(s[j--],s[i++]);
}
return s;
}