class Solution { public: string leftRotateString(string str, int n) { int len = str.size(); str += str; return str.substr(n, len); } };