Linked Chain of 2 -> 4 -> 16 with head pointing at 2
Given the linked chain above, which is the resulting linked chain after the execution of:

              Node newNode = new Node();
              newNode.data = 8;
              curr = head;
              while (curr.next.data < 8) {
                 curr = curr.next;
              }
              newNode.next = curr.next;
              curr.next = newNode;
            
a) b)
c) d)

b
  • a
  • d
  • c

A hint goes here