HCLTech Interview Question

Permutation and combination logic