Leetcode System Verilog Logical Operators