Task for Ukrnet. Searching segments including the given