American Airlines interview question

a question about bits and manipulating them.