Goldman Sachs interview question

IP addresses and Tree nodes