Cisco interview question

Easy to medium level leetcode problems