General Motors (GM) interview question

2 OA questions about Bitwise-Operation