Cisco interview question

how does a router work?