Anyone know what Input: {1,2,2,2} Output: {1,2,#,#} Expected: {1,2,2,2}

The first half of the input is the label values of each node, while the second half of the input is the label values of each random node.
Your output:
{1,2,#,#}
means that all of your random nodes are not pointing to anywhere (#
=NULL
).Maybe a picture is worth a thousand words. Below is a visualization of the input:
{1,2,2,2}
.