Question d’entretien chez Cisco

two easy to medium leetcode problems.