evaluate the permutations and combination​