Backbase interview question

How can you solve this problem?