Inseego Interview Question

How to solve a logic problem.