GSK interview question

What would you implement to solve this......