Microsoft interview question

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