1788: Maximize the Beauty of the Garden

Problem Statement