Question d’entretien chez Microsoft

Write an algorithm to parse a string for all non white space characters