Pattern Question In Leetcode