Pregunta de entrevista de Microsoft

given a string, reverse every substring that contains only alphanumerical characters