Pregunta de entrevista de Client Server

About complexity of my solution