i=pos-1; i>=0; --i)
printf("%c",Sort[i]+'A');
printf(".\n");
}
else if(flag==1){
printf("Inconsistency found after %d relations.\n",stop);
}
else{
printf("Sorted sequence cannot be determined.\n");
}
}
return 0;
}