Word Break, good complexity exercise, AC