Question d’entretien chez Alation

H-index question from Leetcode as it is