Domanda di colloquio di Amazon

The second question was a string implementation problem,