Pregunta de entrevista de Arista Networks

1. Fix the crash and write some function(Coding round)