C++ Question. I need help writing the function below which ismeant to take the letters “A”, “B”, and “C” and output all thevarious combinations without duplicates. n is the length of eachcombination. All help is appreciated and helper functions areallowed.

unsigned combABC(unsigned n); combABC outputs each combination of n letters, where each letter is A, B, or C. For example, combABC(4) would output 15 lines: AAAB /or it could just as well output ABAA, since that’s the
PayPal Gateway not configured
PayPal Gateway not configured