Cisco interview question

3 leetcode easy/medium with arrays and list.