Google interview question

Basic networking and scripting