poj 3267. DP. String matching. Good DP problem.