Code Nation interview question

1 question was to find binary substring in a binary string.