Pregunta de entrevista de BitTorrent

Standard algorithm test questions; nothing that hard