Dawson Spencer interview question

How would you solve this issue?