All testcase are not passing

you should compare str1[i-1]==str2[j-1] && str2[j-1]==str3[k-1]