Amazon interview question

Production based scenario problem solve