Reverse String
Problem Description
Easy
Write a function that reverses a string. The input string is given as an array of characters s.
Tags:
StringsConstraints:
- Time Limit: 1000 ms
- Memory Limit: 128 MB
Sample Test Cases:
Example 1:
Input:
["h","e","l","l","o"]
Expected Output:
["o","l","l","e","h"]
Example 2:
Input:
["H","a","n","n","a","h"]
Expected Output:
["h","a","n","n","a","H"]