Lendlord interview question

Some string manipulation question. Nothing too complicated.