Aptean Interview Question

1 bitwise question was difficult in technical round