Leetcode 3127. Make a Square with the Same Color | Hello Interview