Whatfix interview question

1. Design api for cart feature on e-commerce websites 2. Autosuggest feature using html css js