Shipt Interview Question

How would you use AI for the above?