ASML interview question

How to solve logic problems