Step 1: Pre-Processing: Time Complexity O(m) Making 'lps' Array (Length of longest Prfix which is also the suffix). Here lps[i] represent the length of the longest suffix which is also a prefix O(M)
Source from the content-addressed store, hash-verified