Substring Given a sequence a substring is a sequence of consecutive terms of . For example . The length of the substring is the number of terms it contains, in the example the length would be .