Pergunta de entrevista da empresa Netcraft

How does HTTPS work, and how does it prevent adversaries from intercepting traffic?