Visual Basic Pattern Question On Leetcode Python Solutions