Hedvig (Sweden) interview question

Implement a full stack XYZ system following some constraints.