Microsoft interview question

Problems with string, array, standard libraries