Think Ahead, Look Back: The Magic of Prefix & Suffix Arrays

I have explored the problem solving technicque prefix and suffix. i’ll explain you one by one with example.