Capgemini Interview Question

How Middleware works and what are steps from UI to backend for Execution?