Given a string s and a dictionary of strings wordDict, insert spaces into s to form sentences where every word is present in wordDict. Return all possible valid sentences in any order.
Example:
Input: s = "catsanddog", wordDict = ["cat","cats","and","sand","dog"]
Output: ["cats and dog", "cat sand dog"]

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?