Palo Alto Networks interview question

Find the LCS in not-exponential time, given a string.