CommerceIQ interview question

DSA questions involving recursion and combinations