Chewy interview question

Standard algo-lite coding question & behavioral