d-Matrix interview question

Describe and design a validation system.