Thought Machine interview question

word break leetcode qs (medium)