Pergunta de entrevista da empresa Microsoft

Invert bits in two bytes and swap them.