Flexport interview question

Convert string back to a valid IP address