Arista Networks interview question

Coding by vim ,can't use IDE