What is the mechanism for this reaction?
Here's my attempt. My guess is that formaldehyde will react with one of the amine group to form an imine group. But here's where I am stuck at. It seems almost impossible to insert an oxygen atom into the final product if I were to go by an imine intermediate.
There oxygen atom must have been from the formaldehyde but it is obvious that isn't from an nucleophilic addition.
Help will be greatly appreciated!