Pergunta de entrevista da empresa Microsoft

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