HCLTech interview question

Layer 2 devices example