Microsoft interview question

Design a load balancer and write the basic code for it.