Turing interview question

Word Break - Leetcode problem