I wrote a recursive algorithm that basically looks like the following. I\'m using a Map as a poor\'s man bag/multiset. In order to avoid
Map