Question d’entretien chez Tesla

How I would solve a bitwise operation problem.