Bending Spoons interview question

Bitwise operations, writing algorithms