Question d’entretien chez IBM

The OA asked two leetcode medium questions