Pergunta de entrevista da empresa Apple

question based on bitwise operator