Intel Corporation Interview Question

design a parity checker