Pattern matching with suffix array

Sign in to test your solution.