Pergunta de entrevista da empresa Volt Information Sciences

Write code to Reverse string input: apple banana cat dave output: dave cat banana apple