class Solution { public: string leftRotateString(string str, int n) { string a,b; for (int i = 0; i < n; i ++ ) a+=str[i]; for (int i = n; str[i]; i ++ ) b+=str[i]; return b+a; } };