KMP Algorithm
1. What is the time complexity of the preprocessing function for a pattern of length M?
2. What is the longest-prefix-suffix length for: 'ANIDAPOPOANIDA'?
3. What is the space complexity of the LPS (Longest Prefix Suffix) array?
4. During LPS array construction, what happens when we find a mismatch?
5. What does LPS[0] always equal in the LPS array?