Topic: Backtracking Problem / Level: advanced

Problem: Find all possible ways to partition a string into substrings such that each substring is a valid word in a dictionary.

Run the code to see the output here...