Arista Networks Interview Question

Convert a 3D linked list into a 2D one.