Amazon interview question

How ip address are allocated