Pregunta de entrevista de Arista Networks

Algorithm and DS related problems.