GLG Interview Question

Here is a problem how would you solve it?