Backbase Interview Question

How can you solve this problem?