Google interview question

How does an ethernet switch route?