Leetcode Implement Dynamic Array Systemverilog