Pergunta de entrevista da empresa Roofstock

How would you structure your code for this layout?