Arista Networks Interview Question

Merge nodes between zeroes DSA question