KMP Prefix Function & Z AlgorithmCompare two classic linear-time string preprocessing arrays on the same input.Build ArraysPrefix Function (π)Z Array