Unthinkable Interview Question

Reverse a string can be done using set or hashmap