Kantwert interview question

How would you solve the following problem...?