Question d’entretien chez DistrictD

Data structure algorithm question they asked to me.