Pregunta de entrevista de Arista Networks

Algorithm and python specific questions.