Google interview question

Integrate two systems using a middleware