Marvell Technology interview question

modulo 3 and xor in wave form