Cisco Interview Question

Leetcode 809 is the coding question.