AMD interview question

How would I validate data?