Pergunta de entrevista da empresa InRhythm Solutions

A string with hundreds of names divided by a space.. Reverse each name and print the string