Pregunta de entrevista de Rockstar Games

How would you approach this problem?