Bug Hunt The Comparator That Broke the Transitive Contract The sort threw an inconsistent comparison error on one dataset, because the comparator said a beat b and b beat c but c beat a, and the sort trusted the…