Microsoft Interview Question

Finding if a stream of bits is divisible by 3