Google Interview Question

Simple programming question that grew in difficulty as it went along and added constraints. The second interview had to do with load balancing a web server