Hi....
S1.length() - str.length()
I had Seen the above condition of for loop in check method..
But i m nt able to get it...
As you passing str String of length 6 char and S1 is of 3 it will give-3
but the condition look like false at first time....
Please elabrte about for loop condition