Ample interview question

C++ matrix, C bit manipulation