Comcast Interview Question

Permutation(nA,nB,nC) return all possible permutations