Knuth–Morris–Pratt algorithm's logic in 123 characters in JS | Heykuki News