Amazon Interview Question

Stack green boxes without touching other green boxes.