Garmin Interview Question

They asked me a couple questions about bit manipulation.