Meta interview question

Programming question - genera rate all permutations