Place the given directions in the grid so that each region contains exactly two directions. Directions in one region should satisfy their positions to each other. No direction can be repeated within a row or column.