Affirm interview question

Validate a model with given constraints (see above).