Pregunta de entrevista de MPC

How would you solve this 3D technical challenge?