Pregunta de entrevista de Google

Process simulation based on data structure