World 50 Group interview question

How would you solve this problem?