Rockstar Games Interview Question

How would you approach this problem?