Create boxes in volume

How will you do this ? To make an algorithm you can try to solve it by hand and by little step.
Like said by Joseph, make the levels, then the stairs elevator, then the corridor, then subdivide the remaining surface.
You’ll find many discussions on how to subdivide a shape.