Find a chain inside another

i am trying find a chain inside another, i know there are a method indexOf, but i dont want to use this method, someone could help me, find a chain inside another without use this method?

Sign In or Register to comment.