Pergunta de entrevista da empresa Siemens Healthineers

Write a program to reverse words of string.