try to write longest palidromic substring