Nearbuy interview question

your design question