Pregunta de entrevista de Roofstock

How would you structure your code for this layout?