ASZ Technologies Interview Question

How can you solve te problem?