```
class Solution {
public:
bool ans = false;
string s1, s2, s3;
int len1 =0, len2 =0, len3= 0;
void solve(int first, int second, string final)
{
if((first == len1) && (second == len2))
{
if(final == s3)
ans = true;
return;
}
if(first == len1)
solve(first, second+1, final + s2[second]);
else if(second == len2)
solve(first+1, second, final + s1[first]);
solve(first, second+1, final + s2[second]);
solve(first+1, second, final + s1[first]);
}
bool isInterleave(string sOne, string sTwo, string sThree) {
s1 = sOne; s2 = sTwo; s3 = sThree;
if(s1 != "")
len1 = s1.size();
if(s2 != "")
len2 = s2.size();
if(s3 != "")
len3 = s3.size();
// return ans;
solve(0, 0, "");
return ans;
}
};
```

My code is getting run time error and I am unable to find why?

Any help with that?