Domanda di colloquio di General Motors (GM)

First question was string manipulation. Easy stuff.