Meta interview question

Word Break (No. 139 on LeetCode)