Frage im Vorstellungsgespräch bei Amazon

Write a function to allocated two dimensional rectangles within a larger area.