Pergunta de entrevista da empresa IPCalculus

What is difference between switch, hub and router?