Question d’entretien chez Siemens Healthineers

Write a program to reverse words of string.