11742 - Social Constraints brute force + next permutation