QA InfoTech Interview Question

reverse a sentence keeping spaces intact.