update solution for Word Break