This is a clean backtracking problem with a fixed branching factor per digit, showing how to generate combinations from multiple independent choice sets.
Enable JavaScript for the full StreamPrep guide.