ASZ Technologies interview question

How can you solve te problem?