MPC interview question

How would you solve this 3D technical challenge?