Bare Home interview question

How do you validate data?