using System.Collections.Generic;
public static int[][] RoadBuilder(int nCities, int[, ] builtRoads)
List<int[]> result = new List<int[]>();
bool[,] checkRoadExists = new bool[nCities, nCities];
foreach (int[] city in builtRoads)
checkRoadExists[city[0],city[1]] = true;
checkRoadExists[city[1],city[0]] = true;
for(int i=0; i<nCities;i++)
for(int j=i+1; j<nCities;j++)
if(!checkRoadExists[i,j])
result.Add(new int[]{i,j});
public static void Main()
int[, ] test1 = new int[3, 2]{{0, 1}, {1, 2}, {3, 2}};
Console.WriteLine(RoadBuilder(4, test1));