Question d’entretien chez Qualcomm

leetcode question from blind 75