Manacher's Algorithm – Longest Palindromic Substring · HackerTrans