public static void Test() { Solution s = new Solution(); int[] arr1 = new[] { 2, 3, 1, 3, 2, 4, 6, 7, 9, 2, 19 }; int[] arr2 = new[] { 2, 1, 4, 3, 9, 6 }; s.RelativeSortArray(arr1, arr2).PrintList(); int[] arr11 = new[] { 28, 6, 22, 8, 44, 17 }; int[] arr12 = new[] { 22, 28, 8, 6 }; s.RelativeSortArray(arr11, arr12).PrintList(); }