Coding Challenge · INTERMEDIATE
A busy restaurant receives online orders, each with a preparation time and a priority level (lower numbers mean higher priority). The kitchen can only prepare one order at a time, always choosing the highest priority order available. If multiple orders have the same priority, the one with the shortest preparation time …