Arista Networks interview question

SystemVerilog module design and a High-Level System Composition Design problem