Tesla Interview Question

How I would solve a bitwise operation problem.