RBC Interview Question

How would you solve this case..