Pergunta de entrevista da empresa Microsoft

Finding if a stream of bits is divisible by 3