Aptean interview question

1 bitwise question was difficult in technical round