Deloitte Interview Question

How did you do the add to cart functionality?