Qualcomm Interview Question

How to solve the puzzle problem?