Google Interview Question

Integrate two systems using a middleware