Leetcode 3037. Find Pattern in Infinite Stream II | Hello Interview