Indeed interview question

campus question is first reverse a string and then reverse only words in a string.