More general case of restricted permutation