Algorithm that visits all permutations/combinations of k object whether distinct or Non- Distinct Objects