Question d’entretien chez PepsiCo

Asked a leetcode easy question and OOPs concepts