Cisco interview question

They had 3 leetcode problems, 2 easy and 1 medium.