Question d’entretien chez Chatham Financial

Medium leetcode problem in coding assessments.