Pergunta de entrevista da empresa Indeed

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