Pergunta de entrevista da empresa Microsoft

Use binary expression to solve the above question