Add the last node to make them in circular fashion
temp . next = newNode NEW_LINE newNode . next = start NEW_LINE newNode . prev = temp NEW_LINE temp = start NEW_LINE temp . prev = newNode NEW_LINE i = i + 1 NEW_LINE return start NEW_LINE