string rotation solution.