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