Firstofall let me tell you what a border of string is.
Let x = abacab.
The borders of x are ε, ab . That is a border of a string is a substring which is both a prefix and suffix of it. for e.g. In string abcde hgrab edcba abcde is prefix as well as suffix .Thus it is also the border of above string.
Guys please could somebody help me in finding the border of a string.