Domanda di colloquio di Imperva

The bit manipulation question was a bit tricky.