Validating Consistency of Directional Rules Between Points

hard
Validating Consistency of Directional Rules Between Points - Coding Problem | K5kC