Arm Interview Question

How to extract bits from an integer.