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