Gemini Solutions Interview Question

Rotate the string wordwise from leetcode