Chewy interview question

Data structure and algo questionnaire