Problem Statement
Explain the client-server architecture and how it differs from peer-to-peer networking.
Explanation
In a client-server architecture, clients request services and servers provide them — for example, a web browser requesting data from a web server. The server is centralised, controlling data and authentication. In a peer-to-peer network every device can act as both client and server, sharing resources directly. Client-server is more scalable and easier to secure, while peer-to-peer is decentralised and better for small networks or distributed sharing. Understanding this difference helps answer conceptual design questions in interviews.