Moniepoint interview question

Rearranging 12 boxes using grid template