Given n orders, where each order consists of a pickup and a delivery, count all valid sequences of pickups and deliveries where each delivery occurs after its respective pickup. Return the answer modulo 10^9 + 7.
Click Run to execute sample tests.