Traveloka Interview Question

How do you code a grid system? How do you code a dynamic blocks with the same border as before?