Using suffix array
Another one