Frage im Vorstellungsgespräch bei Microsoft

Data Structues and Algorithms One string question and a followup question