Cant solve it

Write a C++ code that implements a Doubly Linked List structure that contains Integer
elements, and then do the following:

  1. Implement the necessary member functions (insert, display, and search).
  2. Implement a function “DoublyLinkedList getUnion(DoublyLinkedList L2)” that
    displays the union of the calling list (L1) and L2.
  3. Implement a sample run of the getUnion function.
    Example: input L1 = 1, 2, 3, 4
    L2 = 2, 5, 4, 6
    output L3 = 1, 2, 3, 4, 5, 6

This sounds like an assessment to me…