AMD Interview Question

bit shifting problems and logic gates