Minimum Garden Perimeter to Collect Enough Apples
Find the smallest square garden whose perimeter yields at least a target number of apples. The visual adds the apple rings layer by layer with a running total against the target as the side length is searched.