Descriptions:

Lexicographical Substring Search

SPOJ - SUBLEX