Ubisoft Interview Question

Basic bitwise operations and c++ structure