Jane Street interview question

a question on string