Question d’entretien chez CoStar Group

two leetcode questions. easy and medium