ASML Interview Question

How to solve logic problems