Wolt interview question

How could you do the data validation on your code?