Amazon interview question

IP address with classes