Question d’entretien chez Rakuten

One string manipulation question and one dp related problem