1000 customers with maximum points should be displayed on the leader dashboard. UI should handle real-time changes. A customer’s points are updated after each ride/order.
Note: While answering design pattern questions, it is expected from you to provide the Data Structure that would be best suited, different classes & relationships between them, etc. You need not provide the whole code in your answer (unless explicitly told to do so).