Amazon Interview Question

Input string like hello world today output will be today world hello