💻 Interview Prep Arena
Code Practice
Question
Reverse a String
Write a function that takes a string and returns it reversed. For example, given the input `"hello"`, the function should return `"olleh"`.
Constraints
Input string length <= 1000Must return a string value
Test Cases Examples
Input:
"hello"Expected:
"olleh"Input:
"VTUwise"Expected:
"esiwUTV"Input:
"a"Expected:
"a"1
Compiler & Test Suite Outputs
Click "Run Code" above to check your solution against the test suite cases.