Kohler Co. interview question

Project related question C++ oops and bitwise operation