This is one of the solutions to popular code and design problem asked in many of the companies like Thoughtworks, Gojek, Amazon etc. This question has all the ingredients to test a candidate's design skills to build a scalable system. More testcases and features can be added to it based on the requirement. problem statement is described in attached reference. -
View it on GitHub