Frage im Vorstellungsgespräch bei Lendlord

Some string manipulation question. Nothing too complicated.