The problem goes along the lines of:
Write a program that returns the starting indices of every occurrence of a substring (i.e. "dotnet") in a very long string, say over 1 million characters in length. Try to do this in the most time efficient manner.