Arista Networks interview question

A bit manipulation question in C++