Infosys Interview Question

How to connect frontend and backend ?