Given a permutation of symbols that indicates some linear ordering,
how "correct" is another permutation against this permutation?
One way is to check all possible (n choose 2) pairs and see if their orderings are consistent.
Enter a permutation of distinct symbols:
Enter a permutation to check against it: