Epic Interview Question

How would you solve this problem: insert test case here.