System Verilog Function Output Python Interview Programming