public int[] AddAtTest(int idx, int val, int[] arr) { DLinkedList dllist = new DLinkedList(arr); dllist.AddAt(idx, val); return(dllist.ToArray()); }