American Airlines Interview Question

a question about bits and manipulating them.