GSK Interview Question

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