Thought Machine Interview Question

LeetCode 139: Word Break (medium)