Google Interview Question

Coding to parse a netlist