Question d’entretien chez RingCentral

got one question on string manip + greedy