Pregunta de entrevista de Uber

stack + 3D dp question based on the stable cuboid alignment