Basic Pattern Question In Leetcode 759