public static void Test()
        {
            Solution s = new Solution();

            int[][] arr1 = new[]
            {
                new [] { 1, 2 },
                new [] { 2, 1 },
                new [] { 3, 4 },
                new [] { 5, 6 },
            };
            Console.WriteLine(s.NumEquivDominoPairs(arr1));
        }