Intel Corporation interview question

design a parity checker