LeetCode 2716: Keep It Simple