Pregunta de entrevista de Curiosity Gym

How to combine different 3d shapes for required output shape