Arista Networks interview question

Please do this coding problem.