Fidelity Investments interview question

Questions on string handling