You're building the core of a User Management REST API using Express. There's no real database — user data is stored in an in-memory array that acts as a mock DB for this exercise.
The API should let clients create, update, and delete users, while enforcing email uniqueness across all users.
Endpoints to implement
Business rules
Notes
- No database, no auth, no persistence — everything lives in memory for the lifetime of the process.
- Email comparisons should be treated as case-insensitive.