Visual Basic Pattern Matching Leetcode Problem