← Back
Time
00:00
Easy

Reverse String

Write a function that reverses a string. The input string is given as an array of characters s.

Examples:

Input: s = ["h","e","l","l","o"]
Output: ["o","l","l","e","h"]

Code Editor

Output

Run your code to see the output...