Cognizant interview question

permutation and combination function