class Solution { public: string leftRotateString(string str, int n) { while(n--) { str.push_back(str.front()); str.erase(0,1); } return str; } };