If you are not getting right answer check this Hint


#1

check your code for this test case. Most probably your answer would be wrong.
now try to write code to solve this case and you will get the answer.
abc
cd
abcdc
Expected output:- 1


#2

I am unable to find the mistake , can you please tell what is it?