Cisco interview question

It was a Leetcode style question.