Arista Networks interview question

Simple Python problem to test knowledge of bitwise operations