Microsoft Interview Question

Problems with string, array, standard libraries