Pregunta de entrevista de Akamai

Multiple coding questions very basic algorithm. Also some network related questions