Cisco interview question

Coding question. I dont recollect