1 test case is wrong

please tell where my code is wrong-
here is my code- https://ide.codingblocks.com/s/136504

Hello @pragyachoudhary1111,

The mistake is in the third statement of the following three statements:

string r=a.substr(0,b.length());
string s=b.substr(0,a.length());
if(r==b||r==a) 

Can you see it?
It should be s==a

Hope, this would help.
Give a like, if you are satisfied.