Microsoft interview question

Use binary expression to solve the above question