Marvell Technology interview question

basic bit manipulation and algorithms