Pattern Question In Leetcode Interview