Flexsoft Technology interview question

Do you know how to solve this problem?