To solidify my understanding of Java Streams. I am solving leetcode easy questions using java streams. I am confused on how to solve this backtracking problem using streams.