Deutsche Bank interview question

Question based on String tokeniser.