Number of Ways to Form a Target String Given a Dictionary | Leetcode 1639