By observing the relationship between s1 and s2, we find that if s2 is substring of s1s1 we return true and we only use one call of isSubString().
bool isRotation(string s1, string s2){
int len1 = s1.size(), len2 = s2.size();
if(len1 == 0 || len1 != len2) return false;
if(len1 == len2) return isSubString(s1+s1,s2);
return false;
}