Goldman Sachs interview question

Extracting IP addresses from a log