Inseego interview question

How to solve a logic problem.