Wolt Interview Question

How could you do the data validation on your code?