Apple Interview Question

question based on bitwise operator