Microsoft Interview Question

How a switch is implemented internally