Basic Pattern Question In Leetcode 75