Given a string s, return the string reversed. (Conceptually, push every character onto a stack and pop them to build the reversed string.) The input is JSON {s}.
Input: JSON {s}.
Output: String — the reversed string.
Input: {"s":"hello"}
Output: olleh
Explanation: Characters popped in reverse order.Input: {"s":""}
Output:
Explanation: Empty stays empty.Input: {"s":"ab"}
Output: ba
Explanation: Two characters swapped.0<=|s|<=10^5