I tried to write code to solve the list decomposition with All possibilities. The code I wrote was a mess. I need an elegant solution to solve the problem, because I want to imp