Microsoft Interview Question

What data structure would you use to solve this problem?Write the code. The problem is similar to reverse the word or sentence but I can not remember clearly what exactly it is.