Arista Networks interview question

Answer a coding question